Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class TestMode(val storage: Storage, val isTestEnvironment: Boolean = Companion.isTestEnvironment, val getSuperwallProducts: suspend () -> Either<SuperwallProductsResponse, NetworkError> = {
Either.Failure(NetworkError.Unknown())
}, val entitlements: Entitlements? = null, val activityProvider: () -> ActivityProvider? = { null }, val activityTracker: () -> CurrentActivityTracker? = { null }, val hasExternalPurchaseController: () -> Boolean = { false }, val apiKey: () -> String = { "" }, val dashboardBaseUrl: () -> String = { "" }, val tracker: suspend (TrackableSuperwallEvent) -> Unit = { }, val showModal: suspend (activity: Activity, reason: String, hasPurchaseController: Boolean, availableEntitlements: List<String>, apiKey: String, dashboardBaseUrl: String, savedSettings: TestModeSettings?) -> TestModeModalResult = { activity, reason, hasPC, available, ak, db, saved ->
TestModeModal.show(activity, reason, hasPC, available, ak, db, saved)
}, ioScope: CoroutineScope = IOScope(), val actor: StateActor<TestModeContext, TestModeState> = SequentialActor(TestModeState.Inactive, ioScope)) : TestModeContext
Test-mode manager.
Link copied to clipboard
Link copied to clipboard
Dependencies available to TestModeState.Actions.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class TestModeTransactionHandler(testMode: TestMode, activityProvider: ActivityProvider, activityTracker: CurrentActivityTracker? = null)
Link copied to clipboard
StoreProductType backing test-mode products. Shares its implementation with ApiStoreProduct — both are built from Superwall /products endpoint data — but remains a distinct type so test-mode products are distinguishable from custom (store == CUSTOM) products.